using System;
using Microsoft.Xna.Framework;

namespace Autobot
{
    static class RobotRunnerProgram
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            string ip_string = null;

            if (args.Length < 3)
            {
                throw (new Exception("Need at least 3 args. \n WindowSize in pixels and file name\n Usage: WindowSizeX WindowSizeY Filename.txt"));
            }

            if (args.Length >= 4)
            {
                ip_string = args[3];
            }

            Vector2 WindowSize = new Vector2(Convert.ToSingle(args[0]), Convert.ToSingle(args[1]));

            using (RealRobot game = new RealRobot(WindowSize, args[2], ip_string))
            {
                game.Run();
            }
        }
    }
}

